﻿<div class="modal fade" ng-class="{'in':$visible}" ng-show="$visible" style="display:block;">
    <style>
        .form-horizontal .form-group {
            margin-bottom: 15px;
        }
    </style>
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" ng-click="$close()"><span>×</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" ng-bind="$title"></h4>
            </div>
            <!--内容区域开始-->
            <form class="form-horizontal" name="_form" ng-submit="$parent.SaveSaleArea($close)" novalidate>
                <div class="modal-body" style="overflow:auto;" ng-style="{'height':$height}">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">片区名称：</label>
                        <div class="col-sm-4">
                            <input type="text" class="form-control" ng-model="$parent.SalesAreaModel.Name" required placeholder="片区名称" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">联系人：</label>
                        <div class="col-sm-4">
                            <input type="text" class="form-control" placeholder="片区名称" ng-model="$parent.SalesAreaModel.Contacts" name="Contacts">
                        </div>
                        <label class="col-sm-2 control-label">联系电话：</label>
                        <div class="col-sm-4">
                            <input type="text" class="form-control" placeholder="片区名称" ng-model="$parent.SalesAreaModel.ContactTel">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">备注：</label>
                        <div class="col-sm-10">
                            <textarea type="text" class="form-control" placeholder="片区名称" ng-model="$parent.SalesAreaModel.Remark"></textarea>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-primary" ng-disabled="_form.$invalid">保存</button>
                    <button type="button" class="btn btn-default" ng-click="$close()">关闭</button>
                </div>
            </form>
            <!--内容区域结束-->
        </div>
    </div>
</div>
